import { createRouter, createWebHashHistory } from "vue-router";

const home = () =>
  import(/*webpackChunkName:'home'*/ "@/views/Home.vue");

const about = () =>
  import(/*webpackChunkName:'about'*/ "@/views/About.vue");

const routes = [
  { path: "/", redirect: "/home" },
  {
    path: "/home",
    name: "home",
    component: home,
    meta: {
      title: "统计",
      key: "home",
    },
  },
  {
    path: "/about",
    name: "about",
    component: about,
    meta: {
      title: "门店信息",
      key: "about",
    },
  },
];

export default createRouter({
  history: createWebHashHistory(),
  routes,
});
